home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / astronut.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  94 lines

  1. AstroNUT V1.1 
  2. by Kevin Jessup 
  3. 16-May-1991 
  4.  
  5. Version 1.1 
  6. ----------- 
  7. This version adds a bit of audio and corrects a minor bug: flag -19, the 
  8. COMPLEX MODE flag, is now cleared to insure that 2-d vectors are produced when 
  9. required.  Also, all temporary global variables are cleared from the directory 
  10. at the end of play.  (Please allow time for cleanup when the game ends: wait 
  11. for the HP48SX busy indicator to shut off.) Otherwise, the game is the same. 
  12.  
  13. Introduction 
  14. ------------ 
  15. AstroNUT is a lunar lander simulation for the 48SX.  It supports 2-d travel 
  16. (up, down, left, right) and a random terrain that is generated for each new 
  17. game.  All routines are in RPL so the screen updates are somewhat slow.  I 
  18. still find play acceptable however. 
  19.  
  20. The object of the game is to land on a more or less flat portion of the lunar 
  21. surface with a horizontal velocity of zero and a vertical velocity of less than 
  22. 5 feet per second.  (Somewhat fast!  Change it if you like.) You have a limited 
  23. amount of fuel available to do this. 
  24.  
  25. Initial parameters 
  26. ------------------ 
  27. Altitude:            170 feet 
  28.  
  29. Vertical velocity:  -20 feet per second.  A "second" is not the usual unit of 
  30.                      time that you are familiar with but how long it takes this 
  31.                      game to execute its main loop!  You will have to hit the 
  32.                      thrust key quite often to slow down.  Read on... 
  33.  
  34. Horizontal velocity: 5 feet per second.  The direction (left or right) is 
  35.                      random.  The initial horizontal position is also random. 
  36.  
  37. Fuel:                100 units.  In gallons, liters, cubic light-years or 
  38.                      whatever you'd like to call it :-) 
  39.  
  40. Control keys 
  41. ------------ 
  42. 8: Apply upward thrust (One push equals thrust of 1/2 g) 
  43.  
  44. 4: Apply left thrust (Changes horizontal vel. by 1 ft/sec) 
  45.  
  46. 6: Apply right thrust (Changes horizontal vel. by 1 ft/sec) 
  47.  
  48. With each screen update, your downward velocity will 
  49. increase due to the acceleration of gravity at a rate of 
  50. 4 ft/s^2.  It will require 2 hits of the vertical thrust 
  51. (key 8) to exactly compensate for the acceleration due to 
  52. gravity. 
  53.  
  54. Screen positioning 
  55. ------------------ 
  56. As you move to the left and right edges of the display, you will wrap around to 
  57. the opposite side.  There are "unlimited" vertical screens.  You will wrap 
  58. around at the top and bottom.  When you reach the lowest screen, there will be 
  59. a slight pause as the lunar surface is drawn.  If you move above the lowest 
  60. screen, the surface will be erased.  The current "flight parameters" are 
  61. displayed at the top right of the LCD. 
  62.  
  63. Loading 
  64. ------- 
  65. For the neophytes, those funny little characters at the start of these lines 
  66. are HP48SX comment delimiters.  You can transfer this entire file AS IS to 
  67. your 48.  The 48 will remove all the comments and load only the code. 
  68.  
  69. After transferring this file to your 48, recall the directory to the stack. 
  70. Execute the BYTES command.  You should get the following... 
  71.  
  72.              Level 2:    #5AB1h 
  73.              Level 1:    2707.5 
  74.  
  75. Once you have successfully transferred the directory to your 48, just hit PLAY 
  76. to start. 
  77.  
  78. Be patient...after a little practice, you should be able to land using only 100 
  79. units of fuel.  You can modify the amount of fuel, thrust and acceleration due 
  80. to gravity if you like.  Study the code below to find out how.  Have fun! 
  81.  
  82. This is "freeware" but if you'd like to send a few bucks, don't let that stop 
  83. you! 
  84.  
  85. Kevin Jessup 
  86. 9118 N 85th 
  87. Milwaukee, WI 53224 
  88. (414)355-9752 
  89.  
  90. Milwaukee HP48SX BBS 
  91. 2400/1200/300 baud 
  92. (414)362-2020 
  93. 6PM to 7AM or all day Sunday 
  94.